package com.tgy.mapper;

import com.tgy.entity.User;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/***
 * @ClassName: UserMapperImpl
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 17:50 2021/12/19
 * @version : V1.0
 */
public class UserMapperImpl extends SqlSessionDaoSupport implements UserMapper{
    @Override
    public List<User> getAll() {
        return getSqlSession().getMapper(UserMapper.class).getAll();
    }
    @Override
    public int add(User user) {
        return getSqlSession().getMapper(UserMapper.class).add(user);
    }
    @Override
    public int del(int id) {
        return getSqlSession().getMapper(UserMapper.class).del(id);
    }
}
